package cn.luckdou.WeChat.model;


import cn.luckdou.WeChat.utils.MessageUtil;

import java.util.Map;

/**
 * @author Dadou 2017-12-5
 * 语音消息
 */
public class VoiceMessage extends  BaseMessage {
    // 媒体ID
    private Voice Voice;

    public cn.luckdou.WeChat.model.Voice getVoice() {
        return Voice;
    }

    public void setVoice(cn.luckdou.WeChat.model.Voice voice) {
        Voice = voice;
    }

    public VoiceMessage(Voice Voice, Map<String,String> map) {
        super.setMap(map, MessageUtil.RESP_MESSAGE_TYPE_VOICE);
        this.Voice = Voice;
    }

    public VoiceMessage( Map<String,String> map) {
        super.setMap(map, MessageUtil.RESP_MESSAGE_TYPE_VOICE);
    }
}
